convertOctals
Type
property
Summary
Specifies whether numbers with a leading zero are assumed to be octal numbers.
Syntax
set the convertOctals to {true | false}
Description
Use the convertOctals property to make it easier to work with octal numbers.
If the convertOctals property is set to true, numbers that start with a zero are treated as octal (base 8) numbers, instead of decimal (base 10). If the convertOctals is false, all numbers (except hexadecimal numbers, which start with 0x) are treated as decimal.
Since the convertOctals is a local property, its value is reset to false when the current handler finishes executing. It retains its value only for the current handler, and setting it in one handler does not affect its value in other handlers it calls.
Examples
set the convertOctals to true
Related
command: reset
function: baseConvert
glossary: property, call, handler, execute, octal, local property, hexadecimal
Compatibility and Support
Introduced
LiveCode 1.0
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile